package com.PracticeSSm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author cc
 * @date 2021/8/20 18:33
 * @Description
 */
@Controller
public class CommonController {
    @GetMapping({"/","/login"})
    public String toLogin(){
        System.out.println("这是登录");
        return "login";
    }

    @GetMapping("/index")
    public String toindex(){
        return "index";
    }
}
